package org.scheduler4j.scheduler;

import java.util.Date;
import java.util.List;

import org.scheduler4j.DayDuration;

/**
 * The main function of Scheduler4J.
 * @author Eric
 *
 */
public interface Scheduler {

	/**
	 * The main entry for Scheduler4J, apply this schedule to the duration
	 * provided.
	 * 
	 * @param duration
	 *            the duration to apply this schedule
	 * @return all matched Date
	 */
	public List<Date> schedule(DayDuration duration);
}
